﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DiskInspector.Model.MetaDataAttributes
{
    public class FieldLengthAttribute : Attribute
    {
        private int bitLength;

        public int ByteLength
        {
            get
            {
                return this.bitLength / 8;
            }
            set
            {
                this.bitLength = value * 8;
            }
        }

        public int BitLength
        {
            get
            {
                return this.bitLength;
            }
            set
            {
                this.bitLength = value;
            }
        }
    }
}
